/*
 * list.h
 *
 *  Created on: Jul 4, 2008
 *      Author: Carlos Oliveira
 */

#ifndef LIST_H_
#define LIST_H_

typedef struct listNode_
{
	struct listNode_ *next;
	void *content;
} ListNode;

typedef struct list_
{
	ListNode head;
	ListNode *last;
	int size;
} List;

List *list_new();
void list_delete(List *l);
int list_add(List *l, void *elem);
ListNode *list_firstNode(List *l);

#endif /* LIST_H_ */
